﻿using System.Collections.Generic;
using System.ServiceModel;
using Ordering.Service.Contract;

namespace Ordering.Service.Application
{
    [ServiceContract]
    public interface IOrderingService
    {
        [OperationContract]
        IList<CustomerItem> ListAllCustomers();

        [OperationContract]
        IList<OrderItem> ListOrdersOfCustomer(int customerId);

        [OperationContract]
        OrderDetail GetDetailedOrder(int orderNumber);

        [OperationContract]
        int SaveOrder(OrderDetail newOrEditedOrder);
    }
}
